
<h1>Bienvenido/a {{user.get_full_name}}</h1>
<div id="profile_avatar">
    <img src="{{avatar.0}}" Alt="{{user.get_full_name}}" width="{{avatar.1}}" height="{{avatar.2}}">
</div>
<br />
<!--<div id="profile_info">

Nombre: {{user.get_full_name}}<br />
mail: {{user.email}}<br />
telefono: {{user.student.phone_number}}<br />
messenger: {{user.student.messenger}}<br />
skype: {{user.student.skype}}<br />

twitter: {%if user.student.twitter%}
            &#64;{{user.student.twitter}}<br />
         {%else%}
            {{user.first_name}} no ha colocado su cuenta.
         {%endif%}

<a href="/editStudentProfile/">Editar perfil</a>
<br />
</div>-->
<a href="/editStudentProfile/">Editar perfil</a>
<hr />
<h3>Mis Cursos:</h3>
{%for group in newList%}
<div id="{%cycle 'activityLeftDiv' 'activityRightDiv'%}">
    <div id="activity_module">
        <table id="rounded-corner">
            <thead>
                <tr>
                    <th scope="col" class="rounded-left"></th>
                    <th scope="col" class="rounded-right"><a class="table_title" href="#">{{group.0.course.name}}</a></th>
                </tr>
            </thead>
            <tfoot>
                <tr>
                    <td class="rounded-foot-left"></td>
                    <td class="rounded-foot-right"></td>
                </tr>
            </tfoot>
            <tbody>
                {%if group.1%}
                    {%for element in group.1%}

                    <tr>
                        {%ifequal element.0 "Thread"%}
                            <tr>
                                <td><center><img src="/resources/webImages/add.png" width="18" height="18" /></center></td>
                                <td onclick="getLink('{{element.1.get_absolute_url}}')">
                                    <small>{{element.1.date|date:"M d [P]"}}</small><br />
                                    {{element.1.group.teacher.get_full_name}} ha creado un nuevo tema: <a href="{{element.1.get_absolute_url}}">{{element.1.title}}</a>
                                </td>
                            </tr>
                        {%endifequal%}
                        {%ifequal element.0 "Post"%}
                            <tr>
                                <td><center><img src="/resources/webImages/post.png" width="25" height="25" /></center></td>
                                <td onclick="getLink('{{element.1.thread.get_absolute_url}}')">
                                    <small>{{element.1.date|date:"M d [P]"}}</small><br />
                                    {{element.1.creator.get_full_name}} ha posteado <strong>"{{element.1.title}}"</strong> en <a href="{{element.1.thread.get_absolute_url}}">{{element.1.thread.title}}</a>
                                </td>
                            </tr>
                        {%endifequal%}
                        {%ifequal element.0 "Video"%}
                            <tr>
                                <td><center><img src="/resources/webImages/video.png" width="24" height="27" /></center></td>
                                <td onclick="getLink('/viewVideo/{{course.code}}/{{group.code}}/{{element.1.filename}}/')">
                                    <small>{{element.1.date|date:"M d [P]"}}</small><br />
                                    Se ha agregado un nuevo video: <a href="/viewVideo/{{course.code}}/{{group.code}}/{{element.1.filename}}/">{{element.1.title}}</a>
                                </td>
                            </tr>
                        {%endifequal%}
                        {%ifequal element.0 "File"%}
                            <tr>
                                <td><center><img src="/resources/webImages/file.png" width="25" height="25" /></center></td>
                                <td onclick="getLink('{{element.1.get_absolute_url}}')">
                                    <small>{{element.1.date|date:"M d [P]"}}</small><br />
                                    Se ha agregado un nuevo archivo: <a href="{{element.1.get_absolute_url}}">{{element.1.title}}</a>
                                </td>
                            </tr>
                        {%endifequal%}
                        {%ifequal element.0 "News"%}
                            <td><center><img src="/resources/webImages/news.png" width="25" height="25" /></center></td>
                            <td onclick="getLink('{{element.1.get_absolute_url}}')">
                                Se ha agregado una noticia: <a href="{{element.1.get_absolute_url}}">{{element.1.title}}</a>
                            </td>
                        {%endifequal%}
                    </tr>
                    {%endfor%}
                {%else%}
                    <tr>
                        <td><center><img src="/resources/webImages/none.png" width="20" height="20" /></center></td>
                        <td>No ha habido actividad en este grupo.</td>
                    </tr>
                {%endif%}
            </tbody>
        </table>
    </div>
</div>
{%endfor%}
